﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Assessment.Management.DAO;
using Assessment.Management.SharedComponent.Params.ManagerParam;


namespace Assessment.Management.BIZ
{
   public class SubjectBIZ
    {
        public void GetListSubjects(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.GetListSubject(param);
        }
        public void GetListSubjectByTeacherIDAndClassID(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.GetListSubjectByTeacherIDAndClassID(param);
        }
        public void DeleteSubject(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.DeleteSubjects(param);
        }

        public void GetLastSubjectCode(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.GetLastSubjectCode(param);
        }

        public void GetSubjectToEditByCode(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.GetSubjectToEditByCode(param);
        }

        public void GetListSubjectByDepartmentID(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.GetListSubjectByDepartmentID(param);
        }

        public void CreateSubject(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.CreateSubject(param);
        }

        public void UpdateSubject(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.UpdateSubject(param);
        }

        public void SearchSubjects(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.SearchSubjects(param);
        }

        public void CheckExitsData(SubjectParam param)
        {
            var dao = new SubjectDAO();
            dao.CheckExitsData(param);
        }
    }
}

